﻿using Microsoft.AspNetCore.Http;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LayUIFileDemo.Handler
{
    public static class HttpRequestExtensions
    {
        public static string GetRequestUrl(this HttpRequest source)
        {
            return new StringBuilder()
             .Append(source.Scheme)
             .Append("://")
             .Append(source.Host)
             .ToString();
        }
    }
}
